body {
    margin: 0;
    padding: 0;
    color: #666 !important;
    background: #888 !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h2 {
    color: #77777a !important;
    font-weight: bold;
    font-family: STXingkai !important;
    text-align: center;
    text-transform: uppercase;
}

.footer-share h3 {
    color: #ffffff !important;
    font-family: KaiTi !important;
    text-align: center;
    text-transform: uppercase;
}
.footer-follow h3 {
	color: #ffffff !important;
    font-family: SimHei !important;
    text-align: center;
    text-transform: uppercase;
}
.footer-li i {
	margin: 12px auto;
}

a {
    color: #722872;
}

a:hover, a:focus {
    color: #f4df9b;
}

#banner .container,
main header,
#portfolio .grid,
#contact > div,
footer #footer-above {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: flex-start;
    margin: 0 auto;
}

#banner {
    background-color: #d9978f !important;
    height: 80px;
    box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, 0.2);
    border-color: #d9978f;

}

#banner .container {
    width: 95%;
    max-width: 1024px;
    justify-content: space-between;
    align-items: center;
}

#banner .container::before, #banner .container::after {
    display: none
}

#banner img {
    height: 50px;
    margin: 15px 0;
}

nav {
    font-size: 18px;
    font-family: STXinwei;
    transition: all .3s;
}

@media (max-width: 768px) {
    nav {
        padding: 5px;
        text-align: center;
        margin: 0 auto;
        width: 120%
    }

    nav .active a {
        color: #722872;
        background: #bbb;
        box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, 0.1);
    }
}

.nav > li {
    height: 100%;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    display: inline-flex;
}

.nav > li a {
    color: #ffffff;
    padding: 10px 20px;
}

.nav > li a:hover {
    color: #722872;
    background: #bbb;
    box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, 0.1);
}

.navbar-toggle {
    margin-right: 0;
}

#top {
    height: 80px;
    display: block;
}

main > *:not(.scroll-top) {
    max-width: 1024px;
    margin: 0 auto;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.2);
}

main header {
    background: #77777a;
    color: #fff;
    text-align: right;
    padding: 70px 10% 50px;
    align-items: flex-end;
    align-content: space-around;
}

@media (min-width: 1023px) {
    main header {
        padding: 50px 30px
    }
}

main header img {
    border-radius: 50%;
    margin: 30px 0 10px;
    max-width: 80%;
    height: auto;
    width: 250px;
}

main header .intro-text {
    max-width: 675px;
    text-align: center;
    margin-bottom: 30px;
}

@media (min-width: 1023px) {
    main header .intro-text {
        text-align: center;
        width: 610px
    }
}

main header .intro-text .skills {
	font-family: STkaiti;
    font-size: 1.15em;
}

main section {
    background: #eee;
    padding: 40px 0;
}

main section#contact > div {
    margin: 0px auto;
}

main section#contact > div > div {
    width: 80%;
}

main section#contact > div > div p {
    margin: 60px auto 0;
    max-width: 700px;
}

@media (min-width: 1023px) {
    main section#contact > div > div {
        max-width: 38%
    }

    main section#contact > div > div p {
        margin-top: 35px;
    }

    main section#contact > div > div p:last-child {
		font-family: YouYuan;
		font-weight: bold;
        margin-top: 40px;
    }
}

#portfolio .grid {
    padding: 0;
    max-width: 90%;
    list-style: none;
    margin-top: 20px;
}

#portfolio .grid li {
    margin: 20px;
    max-width: 600px;
}

@media (min-width: 1023px) {
    #portfolio .grid li {
        max-width: 420px
    }
}

#portfolio img {

    max-width: 100%;
    height: auto;
    display: block;
}

form {
    width: 80%;
}

@media (min-width: 1023px) {
    form {
        width: 40%;
        margin-left: 20px
    }
}

form .row:first-child .form-item {
    border-top: 1px solid #fff;
}

.form-item {
    position: relative;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #bbb;
}

.form-item input, .form-item textarea {
    z-index: 1;
    position: relative;
    padding-right: 0;
    padding-left: 0;
    border: 0;
    border-radius: 0;
    font-size: 1.5em;
	font-family: YouYuan;
    background: 0 0;
    box-shadow: none !important;
    resize: none;
    width: 100%;
}

.form-item input:focus, .form-item textarea:focus {
    outline: 0
}

.form-item label {
    display: block;
    z-index: 0;
    position: relative;
    top: 2em;
    margin: 0;
    font-size: .85em;
    line-height: 1.764705882em;
    vertical-align: middle;
    vertical-align: baseline;
    opacity: 0;
    transition: top .3s ease, opacity .3s ease;
}

.form-item-filled label {
    top: 0;
    opacity: 1;
    color: #aaa;
}

.form-item-focused label {
    color: #722872;
}

footer {
    color: #fff;
    background-color: #aaa;
    text-align: center;
    box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.2);
}

footer h3 {
    margin-bottom: 30px;
    color: #fff;
}

#footer-above {
    padding-top: 50px;
    width: 80%;
}

#footer-above div {
    margin-bottom: 50px;
    width: 360px;
}

#footer-above ul {
    padding: 0;
}

#footer-above li {
    display: inline;
	margin:0 5px 0 5px;
}

#footer-below {
    box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    background-color: #d9978f;
    text-align: center;
}

.button {
    color: #fff;
    border: solid 2px #fff;
    border-radius: 50%;
    display: inline-block;
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    line-height: 48px;
    transition: all .3s ease-in-out;
}

.button:hover {
    border: solid 2px #fff;
    color: #f4df9b;
    background: #fff;
}

.scroll-top {
    z-index: 1049;
    position: fixed;
    visibility: visible;
    bottom: 2%;
    right: 2%;
}

.scroll-top a {
    background: #722872;
}

.scroll-top a:hover, .scroll-top a:focus {
    color: #722872;
    background-color: #bbb;
    border-color: #722872;
}

@media (min-width: 768px) {
    .scroll-top a {
        visibility: hidden
    }
}

hr.star-bright, hr.star-dark {
    margin: 40px auto 30px;
    padding: 0;
    max-width: 512px;
    border: 0;
    border-top: solid 5px;
    text-align: center;
}

@media (min-width: 1023px) {
    header hr.star-bright, header hr.star-dark {
        margin-right: 0;
        text-align: right
    }

    header hr.star-bright:after, header hr.star-dark:after {
        right: -10px;
    }
}


hr.star-bright {
    border-color: #fff;
}

hr.star-bright:after {
    color: #fff;
    background-color: #aaa;
}

hr.star-dark {
    border-color: #888;
}

hr.star-dark:after {
    color: #888;
    background-color: #eee;
}